home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2004 March / PCWMAR04.iso / Sponsors / Xara / graphics / WS PR screens / js_products.js < prev    next >
Encoding:
Text File  |  2002-10-10  |  1.5 KB  |  50 lines

  1. <!-- Hide from older browsers
  2.  
  3. if (document.images)
  4. {
  5. XaraclubMouseOff = new Image();
  6. XaraclubMouseOff.src = "/graphics/furniture/toolbar_xc_off.gif"
  7. XaraclubMouseOver = new Image();
  8. XaraclubMouseOver.src = "/graphics/furniture/toolbar_xc_on.gif"
  9. ProductsMouseOff = new Image();
  10. ProductsMouseOff.src = "/graphics/furniture/toolbar_products_flat.gif"
  11. ProductsMouseOver = new Image();
  12. ProductsMouseOver.src = "/graphics/furniture/toolbar_Products_on.gif"
  13. DownMouseOff = new Image();
  14. DownMouseOff.src = "/graphics/furniture/toolbar_down_off.gif"
  15. DownMouseOver = new Image();
  16. DownMouseOver.src = "/graphics/furniture/toolbar_down_on.gif"
  17. OrderMouseOff = new Image();
  18. OrderMouseOff.src = "/graphics/furniture/toolbar_order_off.gif"
  19. OrderMouseOver = new Image();
  20. OrderMouseOver.src = "/graphics/furniture/toolbar_order_on.gif"
  21. ResellerMouseOff = new Image();
  22. ResellerMouseOff.src = "/graphics/furniture/toolbar_res_off.gif"
  23. ResellerMouseOver = new Image();
  24. ResellerMouseOver.src = "/graphics/furniture/toolbar_res_on.gif"
  25. SupportMouseOff = new Image();
  26. SupportMouseOff.src = "/graphics/furniture/toolbar_support_off.gif"
  27. SupportMouseOver = new Image();
  28. SupportMouseOver.src = "/graphics/furniture/toolbar_support_on.gif"
  29.  
  30.  
  31.  
  32. }
  33.  
  34.  
  35. function turnMouseOff(ImageName) {
  36.     if (document.images != null) {
  37.         document[ImageName].src = eval(ImageName + "MouseOff.src");
  38.     }
  39. }
  40.  
  41. function turnMouseOver(ImageName) {
  42.     if (document.images != null) {
  43.         document[ImageName].src = eval(ImageName + "MouseOver.src");
  44.     }
  45. }
  46.  
  47.  
  48.  
  49. // -->
  50.